Remove Fcitx
APT
sudo apt remove fcitx*
Pacman
sudo pacman -Rs $(pacman -Qsq fcitx)
Install Fctix5
APT
sudo apt install fcitx5 fcitx5-config-qt fcitx5-frontend-gtk4 fcitx5-frontend-gtk3 fcitx5-frontend-gtk2 fcitx5-frontend-qt5 fcitx5-chinese-addons fcitx5-chewing
Pacman
sudo pacman -S fcitx5 fcitx5-configtool fcitx5-qt fcitx5-gtk fcitx5-im fcitx5-chinese-addons fcitx5-chewing
Environment Variable
對整個系統生效:
sudo nvim /etc/environment
XMODIFIERS=@im=fcitx
GTK_IM_MODULE=fcitx
QT_IM_MODULE=fcitx
im-config
如果你是 Debian/Ubuntu 那麼請執行 im-config
Reboot Now
重新開機
Problems
繁簡轉換
Ctrl + Shift + F
Gnome Google Chrome Problem
如果在 Gnome 中 Fcitx5 無法在 Google Chrome 中使用,請執行以下命令
gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "{'Gtk/IMModule':<'fcitx'>}"
Auto Start Problem (理論上 Fcitx5 會在開機時啟動,所以不需要進行以下操作)
sudo nvim /etc/rc.local
#!/bin/bash
sleep 5
fcitx5 &
sudo chmod a+x /etc/rc.local
sudo systemctl enable rc-local.service
Reboot.